<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>

<div id="templateSelectionMainDev" style="padding-bottom:20px; overflow: scroll;position:relative;width: 800px; height: 500px;overflow-y: scroll; overflow-x: hidden;"> 

	
	<H3 style="text-align:center;">Consumer Template Search Dialog</H3>
	<form:form  id="parameterTemplateForm" method="get" action="search_template.htm" name="apiform" modelAttribute="SelectTemplateModel">
			<table>

		<tr>
			<td>Template Id :</td>
			<td><form:input type="text" id="templateId" path="templateId" style="width:200px" />
			</td>
		</tr>

		<tr>
			<td id="textFieldProp">API Name :</td>
			<td>
				<form:input type="text" id="apiName" value="${selectedApiName}" path="apiName" style="width:200px" />
			</td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td>
				<input type="submit" id="searchApi" name="searchApi" value="Search" class="button_style">
			</td>
			<td><input type="submit" id="popupCancel" name="popupCancel" value="Cancel" class="button_style"></td>
			<td>
				
			</td>
		</tr>
	</table>
	
		<!-- Result Table  -->
	<section id="content_result">
		
				<div class="resultTable_header">Result Table</div>
				
				<table id="table-4">
					<thead>
						<tr>
							<th>Template Selection</th>
							<th>API Name</th>
							<th>Save Date</th>
							<th>Template Id</th>
						</tr>
					</thead>
					<c:forEach var="template" items="${TemplateSelectController_ConsumerTemplateSlecteView}">
						<tbody>
							<tr>
								<td><a
									href="genericapiexecutionmainpage.htm?consumerContent=${template.content}"
									name="templateIdValue" class="button">Select</a></td>
								<td>${template.apiName}</td>
								<td>${template.saveDate}</td>
								<td>${template.templateId}</td>
				
				
							</tr>
						</tbody>
					</c:forEach>
				
				
					</tbody>
				</table>
		</section>
		
	</form:form>
</div>
<script type="text/javascript">
		dojo.addOnLoad(function() {
			Spring.addDecoration(new Spring.AjaxEventDecoration({
    			elementId:'searchApi', 
    			event:'onclick',
    			formId:'parameterTemplateForm',
    			params: {fragments: "templateSelectionMainDev"}
    		}));
		});
</script>

  
  
  
  
  
  
  
  
  
  